Repository navigation
fix(suggest): never autocorrect a typed word to an emoji - #931
Merged
Merged
Conversation
The emoji dictionary is part of the main dictionary collection, so a language with no word list still counts as having a main dictionary and auto-correct stays on, with emojis as possibly the only candidates. Exact personal dictionary shortcuts to an emoji still apply. Claude-Session: https://claude.ai/code/session_017YwBxUnnx3DqiiATw5XxUk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A user reported being mostly auto-corrected to emojis (not reproduced on a device; their log shows failed dictionary downloads but no typed words).
Cause found in code: the emoji dictionary is part of the main dictionary collection, so a language with only the emoji dictionary counts as having a main dictionary. Auto-correct stays on and emojis can be the only candidates.
Fix: reject emoji auto-corrections, except exact personal dictionary shortcuts.
Verification: the new test failed before the fix; all of SuggestTest passes after it.
https://claude.ai/code/session_017YwBxUnnx3DqiiATw5XxUk